import Vue from 'vue'
import { createStore } from 'vuex'
import app from './modules/app'
import user from './modules/user'
import getters from './getters'

const store = createStore({
  modules: {
    app,
    user,
    collapse: false,
  },
  getters,
  mutations: {
      // 侧边栏折叠
      handleCollapse(state, data) {
          state.collapse = data;
      }
  },
  actions: {},
})

export default store
